package com.kexinde.wjifen.vo;

import java.sql.Timestamp;
import java.util.Date;

public class ShopCommentView {

	/**
	 * 主键
	 */
	private Long id;
	
	/**
	 * 评论时间
	 */
	private Date time = new Date();
	
	/**
	 * 被评论的商店id（外键）
	 */
	private Long shopId = 0L;
	
	/**
	 * 用户id（外键）
	 */
	private Long userId = 0L;
	
	/**
	 * 评论内容
	 */
	private String content = "";
	
	/**
	 * 味道评分
	 */
	private Integer tasteRank = 0;
	
	/**
	 * 环境评分
	 */
	private Integer environmentRank = 0;
	
	/**
	 * 服务评分
	 */
	private Integer serviceRank = 0;
	
	/**
	 * 用户姓名
	 */
	private String name = "";
	
	/**
	 * 用户头像
	 */
	private String imagePath = "";

	/**
	 * 构造方法
	 * 动态创建实例，用于数据库读写时，反射获取对象 
	 * 
	 * @param id
	 * @param time
	 * @param shopId
	 * @param userId
	 * @param content
	 * @param tasteRank
	 * @param environmentRank
	 * @param serviceRank
	 * @param name
	 * @param imagePath
	 */
	public ShopCommentView(Long id, Timestamp time, Long shopId, Long userId,
			String content, Integer tasteRank, Integer environmentRank,
			Integer serviceRank, String name, String imagePath) {
		super();
		this.id = id;
		this.time = time;
		this.shopId = shopId;
		this.userId = userId;
		this.content = content;
		this.tasteRank = tasteRank;
		this.environmentRank = environmentRank;
		this.serviceRank = serviceRank;
		this.name = name;
		this.imagePath = imagePath;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getTasteRank() {
		return tasteRank;
	}

	public void setTasteRank(Integer tasteRank) {
		this.tasteRank = tasteRank;
	}

	public Integer getEnvironmentRank() {
		return environmentRank;
	}

	public void setEnvironmentRank(Integer environmentRank) {
		this.environmentRank = environmentRank;
	}

	public Integer getServiceRank() {
		return serviceRank;
	}

	public void setServiceRank(Integer serviceRank) {
		this.serviceRank = serviceRank;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	@Override
	public String toString() {
		return "ShopCommentView [id=" + id + ", time=" + time + ", shopId="
				+ shopId + ", userId=" + userId + ", content=" + content
				+ ", tasteRank=" + tasteRank + ", environmentRank="
				+ environmentRank + ", serviceRank=" + serviceRank + ", name="
				+ name + ", imagePath=" + imagePath + "]";
	}

}
